package cn.tedu.system.shippingcart.mapper;


import cn.tedu.system.shippingcart.pojo.dto.CartDeleteDto;
import cn.tedu.system.shippingcart.pojo.dto.CartQuery;
import cn.tedu.system.shippingcart.pojo.entity.Cart;
import cn.tedu.system.shippingcart.pojo.vo.CartVO;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CartMapper {
    int addCart(Cart cartAddDto);

    int deleteCart(CartDeleteDto deleteDto);

    int updateCart(Cart cartAddDto);

    List<CartVO> selectCart(Long userId);
    //查询所有选中商品总价
    List<Double> allTotalPrice(Long userId);
    //查询是否是同一种
    Integer selProduct(CartQuery cartQuery);
}
